-module(server_mgt).
-export([do_action/2]).
do_action({get,server},Server) ->
	{ehtml,[],io_lib:format("get server info for ~s",[Server])};

do_action({get,ne},all) ->
  lists:map(fun(T) ->
              cdr_to_json:record_to_json(T)
            end,
            signalpoint_sup:get_sgs([]));

do_action({get,ne},NE_Type) ->
  lists:map(fun(T) ->
              cdr_to_json:record_to_json(T)
            end,
            signalpoint_sup:get_sgs([NE_Type]));

do_action(Action,Args) ->
	{ehtml,{'div',[],"test the function"}}.
